package com.tdu.cn.beans;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Text_Bean2 {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("com.tdu.cn");
        Object bean2 = context.getBean(Bean2.class);
        System.out.println(bean2);
    }
}
